import world
import data
import pygame
import constants
import tools
from pygame.locals import *

def prestart():
	
	screen = pygame.display.set_mode((constants.SCREEN_SIZE))
	pygame.display.set_caption('Kingdom Of Vangarde')
	
	InputTools = tools.inputs()
	
	World = world.World(screen)
	World.load_map(constants.map)
	World.update([0,0])
	World.render()
	
	Clock = pygame.time.Clock()
	
	i = 0
	
	while True:
		Clock.tick(15)
		direction = InputTools.move()
		direction = [direction[0]*i,direction[1]*i]
		World.update(direction)
		World.render()
		i += 1